package lab02.test22;

/**
 * Created by 邱雅婷 on 2017/10/31.
 */
public class TEST {


    public static void main(String[] args) {



        String result = "Ha,you!2017";
        StringBuffer stringBuffer = new StringBuffer();



        for (int i = 0; i<result.length(); i++){

            char tmp = result.charAt(i);
            if (tmp >='A' && tmp <='Z'){

                // System.out.print((char)(tmp+32));
                stringBuffer.append((char) (tmp+32));
            }
            else if (tmp >='a' && tmp <='z'){
//                System.out.print(tmp);
                stringBuffer.append(tmp);
            }
            else if (tmp >='0' && tmp <='9'){
//                System.out.print("0");
                stringBuffer.append("0");
            }else {
                //System.out.print("#");
                stringBuffer.append( "转换后 #");
            }
        }
        System.out.println(stringBuffer.toString());
    }}
